#include <iostream>
#include <memory>

// glog
#include "glog/logging.h"

int main(int argc, char** argv) {
  std::shared_ptr<std::string> str_ptr = std::make_shared<std::string>();
  std::shared_ptr<std::string> tmp_str = str_ptr;
  LOG(INFO) << "ptr compare: " << (tmp_str == str_ptr);
  std::weak_ptr<std::string> w_str_ptr = str_ptr;
  LOG(INFO) << "ptr compare: " << (w_str_ptr.lock() == str_ptr);
  w_str_ptr.reset();
  LOG(INFO) << "ptr compare: " << (w_str_ptr.lock() == str_ptr);
  return 0;
}